@import "../../../style/utils";

.panel{
    width: 280px;
    position: absolute;
    left: 10px;
    top: 20px;
    padding: 0 20px;
    overflow: auto;
    height: calc(100% - 70px);
    &::-webkit-scrollbar{
      width: 6px;
      height: 6px;
    }
    &::-webkit-scrollbar-thumb{
      background-color: rgba(171, 173, 174, 0.8);
    }
    &::-webkit-scrollbar-corner{
      background-color: transparent;
    }
    h3{
        color: #666;
        line-height: 45px;
        padding-bottom: 0;
        font-size: 18px;
        border-bottom: 1px solid #ddd;
        font-weight: 400;
        text-align: center;
        @extend .noselect;
        i{
            display: none;
        }
    }
    &[data-show="true"]{
        transition: transform .52s cubic-bezier(0.0,0.0,0.2,1);
        transform: none;
    }
    &[data-show="false"]{
        transition: transform .52s cubic-bezier(0.0,0.0,0.2,1);
        transform: translateX(-320px);
        & + div{
            width: 100%;
            transform: translateX(0px);
        }
    }
}


@include mqsmall( '.panel', (
    position: absolute,
    width: 300px,
    padding: 0,
    left: 0,
    top: 0,
    background-color: #fff,
    height: 100%,
    z-index: 2
));
@include mqfromto( '.panel', '350px', '200px', (
    width: 100%
))
@include mqsmall( '.panel[data-show="true"]', (
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.25)
));
@include mqsmall( '.panel h3', (
    position: relative
));
@include mqsmall( '.panel h3 i', (
    position: absolute,
    top: 0,
    right: 0,
    display: block,
    font-size: 28px,
    color: #757575,
    font-weight: bold,
    width: 100%,
    height: 100%,
    text-align: right,
    padding-right: 20px,
    line-height: 45px
));

.login{
    margin: 20px 0;
    padding: 0 10px;
    position: relative;
    i{
        position: absolute;
        right: 10px;
        top: 36px;
        cursor: pointer;
        color: #ccc;
        width: 36px;
        height: 36px;
        text-align: center;
        line-height: 36px;
    }
    div{
        position: relative;
        height: 36px;
        line-height: 36px;
        label{
            color: #787878;
            position: absolute;
            left: 20px;
            top: 0;
            height: 36px;
            line-height: 36px;
            font-size: 14px;
        }
    }
    input{
        width: 100%;
        color: #787878;
        border: 1px solid #ccc;
        height: 36px;
        line-height: 20px;
        font-size: 18px;
        padding-left: 6px;
        &::-webkit-input-placeholder{
            font-size:14px;
            padding-left: 2px;
        }
        &:first-child{
            border-radius: 3px 3px 0 0;
        }
        &:nth-child(2){
            padding-right: 30px;
            border-radius: 0 0 3px 3px;
            border-top: none;
        }
        &[type="checkbox"]{
            width: 18px;
        }
        &[type="text"]{
            -webkit-appearance: none;
        }
        &[type="text"]:first-child{
            text-transform: uppercase;
        }
        &[type="text"] + i{
            color: #787878;
        }
        &[type="button"]{
            background-color: #ebebeb;
            border: 1px solid #e1e1e1;
            border-radius: 3px;
            color: #505e69;
            cursor: pointer;
            font-size: 14px;
            -webkit-appearance: button;
            @extend .noselect;
            &:active{
                background-color: #E7E7E7;
            }
        }
    }
    @include mqsmall( 'input', (
        width: 100%,
    ));
}

@include mqsmall( '.login', (
    padding: 0 14px
));
@include mqsmall( '.login i', (
    right: 20px,
    top: 44px,
    line-height: 44px,
    height: 44px,
    width: 44px
));
@include mqsmall( '.login input', (
    height: 44px
));

// 移动端登录记住我按钮错位
@include mqsmall( '.login input[type="checkbox"]', (
    height: 36px
));
@include mqsmall( '.login div label', (
    font-size: 16px,
    left: 24px
));


.usertitle{
    border-bottom: 1px solid #ddd;
    line-height: 45px;
    span{
        font-size: 15px;
        color: #666;
        line-height: 23px;
    }
    button{
        float: right;
        margin-top: 11px;
    }
}
@include mqsmall( '.usertitle', (
    margin: 0 20px
));

.bindwx{
    margin: 6px 0;
    small{
        font-size: 14px;
        color: #999999;
    }
    div{
        color: #4a4a4a;
        font-size: 13px;
        margin-top: 10px;
        border: 1px dashed #999999;
        border-radius: 2px;
        padding: 6px;
        text-align: center;
    }
    button{
        display: block;
        width: 100%;
        padding: 6px 0;
        margin-top: 10px;
        background-color: #ebebeb;
        border: 1px solid #e1e1e1;
        border-radius: 3px;
        color: #505e69;
        cursor: pointer;
        font-size: 14px;
        -webkit-appearance: button;
        @extend .noselect;
        &:active{
            background-color: #E7E7E7;
        }
    }
}
@include mqsmall( '.bindwx', (
    margin: 6px 20px 0
));
@include mqsmall( '.bindwx div', (
    font-size: 14px
));

.bookblock{
    margin-top: 20px;
    h4{
        color: #666;
        font-weight: normal;
        font-size: 17px;
    }
}
@include mqsmall( '.bookblock', (
    margin: 20px
));

.nobook{
    text-align: center;
    color: #999999;
    font-size: 14px;
    margin-top: 10px;
}

.bookeach{
    margin-top: 10px;
    &:nth-child(2){
        margin-top: 4px;
    }
    p{
        color: #4a4a4a;
        font-size: 15px;
        line-height: 1.8;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }
    div{
        display: inline-block;
        padding: 4px 6px 4px;
        color: #fff;
        font-size: 13px;
        border-radius: 3px;
    }
    button{
        float: right;
    }
}

.siteinfo{
    border-top: 1px solid #ddd;
    color: rgb(153, 153, 153);
    margin-top: 20px;
    padding: 6px 0;
    font-size: 13px;
}
@include mqsmall( '.siteinfo', (
    margin: 20px
));

.bookfeed{
    margin-top: 10px;
    position: relative;
    &:nth-child(2){
        margin-top: 4px;
    }
    p{
        color: #4a4a4a;
        font-size: 15px;
        line-height: 1.8;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }
    div{
        color: #4a4a4a;
        font-size: 14px;
        margin-top: 8px;
    }
    i{
        position: absolute;
        right: 8px;
        bottom: 0;
    }
}

.iconleft{
    @extend .icon-left;
}

.iconeye{
    @extend .icon-eye;
}

.iconfeed{
    @extend .icon-feed;
    @extend .likebtn;
}

.green{
    @extend .green;
    @extend .noselect;
}

.red{
    @extend .red;
    @extend .noselect;
}

.yellow{
    @extend .yellow;
    @extend .noselect;
}

.btn{
    @extend .btn;
}